package com.epb.eventpcb.common;

public enum StatusEnum {

    SUCCESS(0,"成功"),
    FAILURE(-1, "失败"),

    RUNING(111,"进行中"),
    AUTHFAILURE(401,"认证失败"),
    SET_AUTH(402,"Set Authenticator"),
    SESSIONTIMEOUT(302,"session失效"),
    USER_NOT_EXIST(100101,"用户不存在"),
    USER_PASSWD_ERROR(100102,"用户密码错误"),
    USER_DISABLE(100103,"用户被禁用"),
    USER_CODE_ERROR(100104,"用户校验码错误"),
    PARAMERROR(100501,"参数错误"),
    ADDFAILURE(100502,"插入失败"),
    UPDATEFAILURE(100502,"更新失败"),
    ERROR(999999,"其它错误");

    private int status;
    private String describe;

    public int getStatus() {
        return status;
    }

    public String getDescribe() {
        return describe;
    }
    StatusEnum(int i, String describe) {
        this.status=i;
        this.describe=describe;
    }
}
